import re

s = '''D:/Download/IndiaHistory/List of Companies registered for Year 1981.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1982.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_incorporation']
D:/Download/IndiaHistory/List of Companies registered for Year 1983.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1984.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1985.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1986.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1987.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1988.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1989.pdf
['cin/fcrn', 'name_of_the_entity', 'date_of_incorporation']
D:/Download/IndiaHistory/List of Companies registered for Year 1990.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1991.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1992.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1993.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1994.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1995.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1996.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1997.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1998.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 1999.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2000.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2001.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2002.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2003.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2004.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2005.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2006.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2007.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2008.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2009.pdf
['cin/fcrn', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2010.pdf
['cin/fcrn', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2011.pdf
['cin/fcrn', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2012.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered for Year 2013.pdf
['cin/fcrn', 'name_of_the_entity', 'date_of_registration']
D:/Download/IndiaHistory/List of Companies registered up to 1980.pdf
['cin/fcrn/llpin/fllpin', 'name_of_the_entity', 'date_of_registration']
'''

pin = []
a = s.splitlines()
# print(a)
for i in a:
    if not i.startswith("D:/Download") :
        if i not in pin:
            print(i)
            pin.append(i)

print(pin)
